const config = {
  // grid
  type: 'mesh',
  size: 10,
  color: '#e5e5e5',
  thickness: 1,
  colorSecond: '#d0d0d0',
  thicknessSecond: 1,
  factor: 4,
  bgColor: '#fff',
  showImage: false,
  visible: true,
  repeat: 'watermark',
  angle: 30,
  position: 'center',
  bgSize: 150,
  opacity: 0.1,
  // edge
  stroke: '#080808',
  strokeDasharray: 0,
  strokeWidth: 1,
  connector: 'normal',
  label: '',
  targetMarkerSize: 8,
  lineType: 'classic',
  targetMarkerName: 'classic',
  routerName: 'normal',
  edgeType: 'edge',
  edgeIndex: 1,
  // node
  nodeStroke: '#080808',
  nodeStrokeWidth: 1,
  nodeFill: '#ffffff',
  nodeFontSize: 12,
  nodeBgColor: 'rgba(0,0,0,0)',
  nodeFontColor: 'rgba(0,0,0,0.8)',
  nodeWidth: 80,
  nodeHeight: 40,
  nodeAngle: 0
}

export const portAttrs = {
  circle: {
    r: 3,
    magnet: true,
    stroke: '#ffa940',
    strokeWidth: config.nodeStrokeWidth,
    fill: '#fff',
    style: {
      visibility: 'hidden'
    }
  }
}

export const NODE_SETING_ENUM = {
  WIDTH: 'nodeWidth',
  HEIGHT: 'nodeHeight',
  ANGLE: 'nodeAngle',
  STROKE: 'nodeStroke',
  FILL: 'nodeFill',
  FONT_SIZE: 'nodeFontSize',
  FONT_COLOR: 'nodeFontColor',
  LABEL: 'label',
  R: 'r',
  STROKE_WIDTH: 'nodeStrokeWidth',
  TEXT_WRAP: 'textWrap',
  TEXT_ANCHOR: 'textAnchor',
  LINE_TYPE: 'strokeDasharray'
}

export default config
